const http = require( 'http' );
const url = require( 'url' );

http.createServer( ( req, res ) => { 
    let { pathname, query: get } = url.parse( req.url, true )
    console.log( pathname, get );
    res.end( 'aaaa' );
} ).listen( 8080, () => console.log( '8080' ) );
